From: Christian Kellner Date: Thu, 19 Apr 2018 12:18:13 +0000 (+0200) Subject: thunderbolt: remove gdbus error prefix, if present X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~5^2~87 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=874a91968f93304d9c1a98e76ecb01ea06db43a4;p=gnome-shell.git thunderbolt: remove gdbus error prefix, if present If we get an error during device enrollment, the message might be prefixed to indicate that the error came from the remote peer. We are presenting that message to the user so strip that prefix away if it was there. --- diff --git a/js/ui/status/thunderbolt.js b/js/ui/status/thunderbolt.js index ebd1c3eb1..f3236f21c 100644 --- a/js/ui/status/thunderbolt.js +++ b/js/ui/status/thunderbolt.js @@ -144,6 +144,7 @@ var Client = new Lang.Class({ this._proxy.EnrollDeviceRemote(id, policy, AuthFlags.NONE, (res, error) => { if (error) { + Gio.DBusError.strip_remote_error(error); callback(null, error); return; }